package com.demoo.zjsu.string.userinfo;

import java.util.ResourceBundle;

/**
 * Created by jshjsh on 2016/8/12.
 * 微信相关的关键字
 */
public class Wechat {

    public final static String SNSAPI_BASE = "snsapi_base";

    public final static String GETCODE = "https://open.weixin.qq.com/connect/oauth2/authorize?" +
            "appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&" +
            "scope=SCOPE&state=STATE#wechat_redirect";

    public final static String SNSAPI_USERINFO = "snsapi_userinfo";

    public final static String REDIRECT_URI = "REDIRECT_URI";

    public final static String SCOPE = "SCOPE";

    public final static String STATE = "STATE";

    public final static String APPID = "APPID";

    public static final String appId;

    public static final String appSecret;

    static {
        ResourceBundle bundle = ResourceBundle.getBundle("value");
         appId = bundle.getString("appId");
         appSecret = bundle.getString("appSecret");
    }
}
